/*main entrance for the gogame app
 *author is Fanyu Ye
 *app Version 1.0 finished in 2011.11
 *more infos pls read readme file
 *contact are welcome at fanyu_ye@hotmail.com
 */

#include <QApplication>
#include <QSplashScreen>
//#include <QTimer>

#include "gomainwindow.h"

int main(int argc, char *argv[])
{
    QApplication app(argc, argv);

    /*QTimer *timer = new QTimer();
    timer->setSingleShot(true);
    timer->setInterval(3000);
    timer->start();*/

    QSplashScreen *splash = new QSplashScreen;
    splash->setPixmap(QPixmap(":/images/lanke.bmp"));
    splash->show();

    /*bool b = false;
    while(!b)
    {
        if(!timer->isActive())
        {
            b = true;
        }
    }*/

    GoMainWindow goMainWin;
    goMainWin.show();
    splash->finish(&goMainWin);
    delete splash;

    return app.exec();
}
